cmake_minimum_required(VERSION 3.16)
project(WebDesk C)

set(CMAKE_C_STANDARD 11)

# 查找 OpenSSL 库
find_package(OpenSSL REQUIRED)

# 包含 OpenSSL 头文件
include_directories(${OPENSSL_INCLUDE_DIR})

include_directories(utils)
aux_source_directory(utils UU_SRC)

add_subdirectory(server)
add_subdirectory(client)

add_executable(WebDesk test.c ${UU_SRC})
target_link_libraries(WebDesk PRIVATE pthread mysqlclient crypt ${OPENSSL_LIBRARIES} OpenSSL::Crypto)
